package com.bw.home.model

import com.bw.common.http.NetUtils.httpRequest
import javax.inject.Inject

class HomeRepo @Inject constructor(val apiService:HomeApiService) {
    suspend fun getHomeList():HomeListEntity?{
        val result = httpRequest{apiService.getHomeList()}
        if(result.code == 200){
            return result.data
        }
        return null
    }
}